package com.mrzhou.core.exception;

import com.mrzhou.core.tool.api.ResultCode;

/**
 * 业务异常，系统中统一使用此异常
 * @author qiang.zhou
 */
public class BusinessException extends RuntimeException {

    private String message;

    private Integer code;

    public BusinessException() {
        super();
    }

    public BusinessException(String message) {
        super(message);
        this.message = message;
        this.code = ResultCode.FAILURE.getCode();
    }

}
